package com.iotechn.unimall.admin.api.userShop;

import com.iotechn.unimall.core.annotation.HttpMethod;
import com.iotechn.unimall.core.annotation.HttpOpenApi;
import com.iotechn.unimall.core.annotation.HttpParam;
import com.iotechn.unimall.core.annotation.HttpParamType;
import com.iotechn.unimall.core.annotation.param.NotNull;
import com.iotechn.unimall.core.exception.ServiceException;
import com.iotechn.unimall.data.domain.ShopUserDO;
import com.iotechn.unimall.data.domain.UserShopDO;
import com.iotechn.unimall.data.model.Page;

/**
 * @author hct
 * @email 77802226@qq.com
 * @date 2022-05-24 21:04:46
 */
@HttpOpenApi(group = "admin.shopUser", description = "")
public interface AdminShopUserService {

    @HttpMethod(description = "创建")
    public ShopUserDO create(
            @NotNull @HttpParam(name = "shopUserDO", type = HttpParamType.COMMON, description = "") ShopUserDO shopUserDO,
            @NotNull @HttpParam(name = "adminId", type = HttpParamType.ADMIN_ID, description = "管理员ID") Long adminId) throws ServiceException;

    @HttpMethod(description = "修改")
    public String update(
            @NotNull @HttpParam(name = "shopUserDO", type = HttpParamType.COMMON, description = "") ShopUserDO shopUserDO,
            @NotNull @HttpParam(name = "adminId", type = HttpParamType.ADMIN_ID, description = "管理员ID") Long adminId) throws ServiceException;

    @HttpMethod(description = "删除")
    public String delete(
            @NotNull @HttpParam(name = "id", type = HttpParamType.COMMON, description = "删除Id") Long id,
            @NotNull @HttpParam(name = "adminId", type = HttpParamType.ADMIN_ID, description = "管理员ID") Long adminId) throws ServiceException;


}

